package com.bank.accountinfo.user.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    //@TableField(select = false) // 在查询时默认不返回密码字段
    private String password;

    private String phone;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    // 其他字段...
}